package cn.itcast.usermanage.service;

import cn.itcast.usermanage.pojo.EasyUIResult;
import cn.itcast.usermanage.pojo.User;

public interface UserService {

	EasyUIResult queryUserByPages(Integer page, Integer size);

	
	/**
	 * 测试事务
	 * @param user1
	 * @param user2
	 */
	public void addUsers(User user1, User user2);


	Boolean addUser(User user);


	Boolean updateUser(User user);


	public boolean deleteUser(String[] ids) throws Exception;


	User queryUserById(Long id);


	void saveUser(User user);


	void deleteUserById(Long[] ids);


	
}
